package com.wangx1n.bean;

import org.springframework.stereotype.Component;

/**
 * @author WangXin
 * @date 2020/12/3 17:04
 */
//value等价于配置文件的id，可以省略value，默认名称为类的首字母小写
@Component(value = "person")
public class Person {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
